package edu.aynu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * (Exam)实体类
 *
 * @author sitong
 * @since 2021-06-21 20:50:40
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Exam implements Serializable {
    private static final long serialVersionUID = 871221162302577003L;

    private Integer id;

    private String name;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date endTime;

    private Long duration;

    private Integer totalScore;

    private String status;

    private String courseName;

    private String ownerNickname;

    private String description;

    private String invitationCode;

    private String submitType;

    private List<ExamItem> examItemList;

}
